<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>pdf</title>
     <script src="./vendor/jquery/jquery.min.js"></script>
    <script src="./js/layer/layer.js"></script>
    <script type="text/javascript" src="./js/pdfobject.min.js"></script>
    <script>
        $(document).ready(function(){
            var s = window.location.search;
            s = s.substring(s.indexOf("?") + 1 , s.length);
            var list = s.split("=");

            var h = $(window).height();
            $("#testT").css("height", h + "px");
            if(list.length > 1){
                PDFObject.embed(list[1], "#testT");
            }
            window.onresize=function(){
                var h = $(window).height();
                $("#testT").css("height", h + "px");//修改下方高度
            }
        });
    </script>
</head>
<body style="overflow: hidden;">
    <div id="testT" style="width: 100%;height:100%;"></div>
</body>
</html>
